package com.mes.cloud.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Deacription :
 * @Author syn
 * @Date 2019/11/20
 **/
@ApiModel(value = "UserRoleDTO", description = "用户角色信息")
@Data
public class UserRoleDTO implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "关联表ID", dataType = "Long")
    private Long id;

    @ApiModelProperty(value = "用户id", dataType = "Long")
    private Long userId;

    @ApiModelProperty(value = "角色id", dataType = "Long")
    private Long roleId;

    @ApiModelProperty(value = "关联时间", dataType = "Date")
    private Date crtdate;

    @ApiModelProperty(value = "0正常、1主要", dataType = "Integer")
    private Integer isMain;

    @ApiModelProperty(value = "角色名", dataType = "String")
    private String name;

    @ApiModelProperty(value = "角色级别", dataType = "Integer")
    private Integer lv;

    @ApiModelProperty(value = "角色描述", dataType = "String")
    private String remark;

    @ApiModelProperty(value = "角色类型", dataType = "String")
    private String type;

    @ApiModelProperty(value = "角色编码", dataType = "String")
    private String code;




}
